Optimal. Leaf size=106 \[ -\frac {\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {\text {ArcCos}(a x)}\right )}{4 a^5}-\frac {\sqrt {\frac {3 \pi }{2}} S\left (\sqrt {\frac {6}{\pi }} \sqrt {\text {ArcCos}(a x)}\right )}{8 a^5}-\frac {\sqrt {\frac {\pi }{10}} S\left (\sqrt {\frac {10}{\pi }} \sqrt {\text {ArcCos}(a x)}\right )}{8 a^5} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.07, antiderivative size = 106, normalized size of antiderivative = 1.00, number of steps
used = 9, number of rules used = 4, integrand size = 12, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.333, Rules used = {4732, 4491,
3386, 3432} \begin {gather*} -\frac {\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {\text {ArcCos}(a x)}\right )}{4 a^5}-\frac {\sqrt {\frac {3 \pi }{2}} S\left (\sqrt {\frac {6}{\pi }} \sqrt {\text {ArcCos}(a x)}\right )}{8 a^5}-\frac {\sqrt {\frac {\pi }{10}} S\left (\sqrt {\frac {10}{\pi }} \sqrt {\text {ArcCos}(a x)}\right )}{8 a^5} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 3386
Rule 3432
Rule 4491
Rule 4732
Rubi steps
\begin {align*} \int \frac {x^4}{\sqrt {\cos ^{-1}(a x)}} \, dx &=-\frac {\text {Subst}\left (\int \frac {\cos ^4(x) \sin (x)}{\sqrt {x}} \, dx,x,\cos ^{-1}(a x)\right )}{a^5}\\ &=-\frac {\text {Subst}\left (\int \left (\frac {\sin (x)}{8 \sqrt {x}}+\frac {3 \sin (3 x)}{16 \sqrt {x}}+\frac {\sin (5 x)}{16 \sqrt {x}}\right ) \, dx,x,\cos ^{-1}(a x)\right )}{a^5}\\ &=-\frac {\text {Subst}\left (\int \frac {\sin (5 x)}{\sqrt {x}} \, dx,x,\cos ^{-1}(a x)\right )}{16 a^5}-\frac {\text {Subst}\left (\int \frac {\sin (x)}{\sqrt {x}} \, dx,x,\cos ^{-1}(a x)\right )}{8 a^5}-\frac {3 \text {Subst}\left (\int \frac {\sin (3 x)}{\sqrt {x}} \, dx,x,\cos ^{-1}(a x)\right )}{16 a^5}\\ &=-\frac {\text {Subst}\left (\int \sin \left (5 x^2\right ) \, dx,x,\sqrt {\cos ^{-1}(a x)}\right )}{8 a^5}-\frac {\text {Subst}\left (\int \sin \left (x^2\right ) \, dx,x,\sqrt {\cos ^{-1}(a x)}\right )}{4 a^5}-\frac {3 \text {Subst}\left (\int \sin \left (3 x^2\right ) \, dx,x,\sqrt {\cos ^{-1}(a x)}\right )}{8 a^5}\\ &=-\frac {\sqrt {\frac {\pi }{2}} S\left (\sqrt {\frac {2}{\pi }} \sqrt {\cos ^{-1}(a x)}\right )}{4 a^5}-\frac {\sqrt {\frac {3 \pi }{2}} S\left (\sqrt {\frac {6}{\pi }} \sqrt {\cos ^{-1}(a x)}\right )}{8 a^5}-\frac {\sqrt {\frac {\pi }{10}} S\left (\sqrt {\frac {10}{\pi }} \sqrt {\cos ^{-1}(a x)}\right )}{8 a^5}\\ \end {align*}
________________________________________________________________________________________
Mathematica [C] Result contains complex when optimal does not.
time = 0.07, size = 192, normalized size = 1.81 \begin {gather*} -\frac {-10 \sqrt {-i \text {ArcCos}(a x)} \text {Gamma}\left (\frac {1}{2},-i \text {ArcCos}(a x)\right )-10 \sqrt {i \text {ArcCos}(a x)} \text {Gamma}\left (\frac {1}{2},i \text {ArcCos}(a x)\right )-5 \sqrt {3} \sqrt {-i \text {ArcCos}(a x)} \text {Gamma}\left (\frac {1}{2},-3 i \text {ArcCos}(a x)\right )-5 \sqrt {3} \sqrt {i \text {ArcCos}(a x)} \text {Gamma}\left (\frac {1}{2},3 i \text {ArcCos}(a x)\right )-\sqrt {5} \sqrt {-i \text {ArcCos}(a x)} \text {Gamma}\left (\frac {1}{2},-5 i \text {ArcCos}(a x)\right )-\sqrt {5} \sqrt {i \text {ArcCos}(a x)} \text {Gamma}\left (\frac {1}{2},5 i \text {ArcCos}(a x)\right )}{160 a^5 \sqrt {\text {ArcCos}(a x)}} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [A]
time = 0.22, size = 72, normalized size = 0.68
method | result | size |
default | \(-\frac {\sqrt {2}\, \sqrt {\pi }\, \left (\sqrt {5}\, \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {5}\, \sqrt {\arccos \left (a x \right )}}{\sqrt {\pi }}\right )+5 \sqrt {3}\, \mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {3}\, \sqrt {\arccos \left (a x \right )}}{\sqrt {\pi }}\right )+10 \,\mathrm {S}\left (\frac {\sqrt {2}\, \sqrt {\arccos \left (a x \right )}}{\sqrt {\pi }}\right )\right )}{80 a^{5}}\) | \(72\) |
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: RuntimeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F(-2)]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Exception raised: TypeError} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {x^{4}}{\sqrt {\operatorname {acos}{\left (a x \right )}}}\, dx \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [C] Result contains complex when optimal does not.
time = 0.47, size = 139, normalized size = 1.31 \begin {gather*} -\frac {\left (i - 1\right ) \, \sqrt {10} \sqrt {\pi } \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {10} \sqrt {\arccos \left (a x\right )}\right )}{320 \, a^{5}} + \frac {\left (i + 1\right ) \, \sqrt {10} \sqrt {\pi } \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {10} \sqrt {\arccos \left (a x\right )}\right )}{320 \, a^{5}} - \frac {\left (i - 1\right ) \, \sqrt {6} \sqrt {\pi } \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {6} \sqrt {\arccos \left (a x\right )}\right )}{64 \, a^{5}} + \frac {\left (i + 1\right ) \, \sqrt {6} \sqrt {\pi } \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {6} \sqrt {\arccos \left (a x\right )}\right )}{64 \, a^{5}} - \frac {\left (i - 1\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (\left (\frac {1}{2} i - \frac {1}{2}\right ) \, \sqrt {2} \sqrt {\arccos \left (a x\right )}\right )}{32 \, a^{5}} + \frac {\left (i + 1\right ) \, \sqrt {2} \sqrt {\pi } \operatorname {erf}\left (-\left (\frac {1}{2} i + \frac {1}{2}\right ) \, \sqrt {2} \sqrt {\arccos \left (a x\right )}\right )}{32 \, a^{5}} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int \frac {x^4}{\sqrt {\mathrm {acos}\left (a\,x\right )}} \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________